﻿@model User

<form method="post" asp-action="Edit">
    <div class="border p-3 mt-4">
        <div class="row pb-2">
            <h2 class="text-primary">编辑用户</h2>
            <hr />
        </div>
        <div asp-validation-summary="All"></div>
        <div class="mb-3">
            <label asp-for="Name"></label>
            <input asp-for="Name" class="form-control" />
            <span asp-validation-for="Name" class="btn-danger"></span> @* 验证状态*@
        </div>
        <div class="mb-3">
            <label asp-for="Phone"></label>
            <input asp-for="Phone" class="form-control" />
            <span asp-validation-for="Name" class="btn-danger"></span>
        </div>
        <div class="mb-3">
            <label asp-for="Password"></label>
            <input asp-for="Password" class="form-control" />
            <span asp-validation-for="Name" class="btn-danger"></span>
        </div>
        <div class="mb-3">
            <label asp-for="Roleid"></label>
            <input asp-for="Roleid" class="form-control" />
            <span asp-validation-for="Roleid" class="btn-danger"></span>
        </div>
        <button type="submit" class="btn btn-primary" style="width:150px">更新</button>
        <a asp-controller="User" asp-action="index" class="btn btn-secondary" style="150px">返回 </a>
    </div>
</form>